﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第六次作业
{
    internal class School
    {
        private string schoolname;

        private List<Class> classes;
        
        public void Setschoolname(string name)
        {
            this.schoolname = name;
        }
        public string Getschoolname()
        {
            return schoolname;
        }

        public void Setclasses(Class c)
        {
            classes.Add(c);
        }

        public List<Class> GetClasses()
        {
            if (classes == null)
            {
                return null;
            }
            return classes;
        }
    }
}
